﻿@using CashFlow.Web.Models;
@{
    ViewBag.Title = "List";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<style type="text/css">
    .title {
        text-align: center;
        font-size: 20px;
        padding: 10px 0px;
    }

    .list {
        width: 85%;
        margin: 0px auto;
        margin-top: 10px;
        padding-bottom: 81px;
    }

    .list-item {
        background-color: white;
        border-radius: 10px;
        font-size: 16px;
        margin-top: 15px;
    }

        .list-item:first-child {
            margin-top: 0px;
        }

    .list-item-row {
        height: 40px;
        line-height: 40px;
    }

        .list-item-row span:first-child {
            color: #999;
            width: 100px;
            display: inline-block;
            text-align: right;
        }

        .list-item-row span:last-child {
            margin-left: 10px;
        }
</style>

<h2 class="title">我的预约</h2>

<div class="list">
    @{
        foreach (AppointmentItemInfoModel item in ViewBag.List)
        {
            <div class="list-item">
                <div class="list-item-row"><span>预约人:</span><span>@item.Name</span></div>
                <div class="list-item-row"><span>预约类型:</span><span>@item.Type</span></div>
                <div class="list-item-row"><span>预约时间:</span><span>@item.Time.ToString("yyyy-MM-dd HH:mm:ss")</span></div>
            </div>
        }
    }
</div>
